package cn.itcast.order;

import cn.itcast.feign.config.FeignConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@Slf4j
@MapperScan("cn.itcast.order.mapper")
@SpringBootApplication                         // basePackages = "cn.itcast.feign", 指定扫描的包
@EnableFeignClients(defaultConfiguration = FeignConfiguration.class, basePackages = "cn.itcast.feign")  // 开启 Feign 自动装配注解, 并开启全局日志
//@EnableFeignClients // 开启 Feign 自动装配注解
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
        log.info("order 服务启动");
    }


}